package FinalTest7;

public class Student {

    private String name;
    private int age;
    private  String grade;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }
//    public void Student(){String Name;int age;}

    public Student(String name, int age, String grade) {
        this.name = name;
        this.age = age;
        this.grade = grade;
    }
    public Student(){

    }
    public String toString() {
        return "学生{" +
                "名字='" + name + '\'' +
                ", 年龄=" + age +
                ", 年级='" + grade + '\'' +
                '}';
    }
}
